package site.yunnong.atvris.admin.service;

import org.springframework.security.core.userdetails.UserDetails;
import site.yunnong.atvris.dao.admin.form.RegisterForm;
import site.yunnong.atvris.dao.model.SysAdmin;

public interface SysAdminManageService {

    /**
     * 用于security
     */
    UserDetails loadAdminByUsername(String username);

    SysAdmin getAdminByUsername(String username);

    /**
     * 注册
     */
    String register(RegisterForm form);

    String login(String username, String password);

    SysAdmin getAdminById(Long id);
}
